<!DOCTYPE HTML>
<html>
<!-- Added by HTTrack --><meta http-equiv="content-type" content="text/html;charset=utf-8" /><!-- /Added by HTTrack -->

{{--页面head部分--}}
<head>
    <meta charset="UTF-8">
    <meta name="description" content="">
    <meta name="keywords" content="">
    <title>@section('title')首页@show</title>
    {{--<link rel="shortcut icon" href="/favicon.ico">--}}
    <link rel="Bookmark" href="/Home/favicon.ico" >
    <link rel="Shortcut Icon" href="/Home/favicon.ico" />
    <link href="/Home/css/style.css" media="screen" rel="stylesheet" type="text/css">
    <link href="/Home/css/grid.css" media="screen" rel="stylesheet" type="text/css">
    <link href="/Home/style.css" rel="stylesheet" type="text/css">
    <link href="/Home/bmm.css" rel="stylesheet" type="text/css">
    {{--省市县收货地址js--}}
    <script src="/Home/city.js"></script>
    <script src="/Home/js/jquery-1.7.2.min.js" ></script>
    <script src="/Home/js/html5.js" ></script>
    <script src="/Home/js/jflow.plus.js" ></script>
    <script src="/Home/js/jquery.carouFredSel-5.2.2-packed.js"></script>
    <script src="/Home/js/checkbox.js"></script>
    <script src="/Home/js/radio.js"></script>
    <script src="/Home/js/selectBox.js"></script>
    <script type="text/javascript" src="/Admin/lib/layer/2.4/layer.js"></script>
    {{--购物车动画--}}
    <script src="/Home/jquery.fly.min.js"></script>
</head>

{{--页面body部分--}}
<body>
<div class="container_12">
    {{--body的top部分--}}
    <div id="top">
        <div class="grid_3">
            <div class="welcome">
                @if(empty($user_info))
                    汪，欢迎来天狗
                    @else
               hi,{{$user_info->user_name}}
                    @endif
            </div><!-- .phone_top -->
        </div><!-- .grid_3 -->

        <div class="grid_6">
            <div class="welcome">
                @if(empty($user_info))
                 hi!  请<a href="{{url('login/login_in')}}">登录</a> 或者 <a href="{{url('login/register')}}">注册</a>.
                    @else
                    这片空白写些啥子好捏？
                @endif
            </div><!-- .welcome -->
        </div><!-- .grid_6 -->

        <div class="grid_3">
            <div class="valuta">
                <ul>
                    <li><a href="{{url('/login_out/')}}">退出</a></li>
                </ul>
            </div><!-- .valuta -->
    </div><!-- #top -->

    <div class="clear"></div>

    <header id="branding">
        <div class="grid_3">
            <hgroup>
                {{--商城logo--}}
                <h1 id="site_logo" ><a href="{{url('home_index')}}"><img src="/Home/images/logo.png" alt="这是商城图标"/></a></h1>
                <h2 id="site_description">天狗商城</h2>
            </hgroup>
        </div><!-- .grid_3 -->

               {{--商品搜索--}}
        <div class="grid_3">
            <form class="search">
                <input type="text" name="search" class="entry_form" value="" placeholder="搜索一下吧"/>
            </form>
        </div><!-- .grid_3 -->

        <div class="grid_6">
            <ul id="cart_nav">
                <li>
                    <i id="end"></i>
                    <a class="cart_li" href="{{url('/shopping_cart/')}}">购物车</a>
                    {{--<ul class="cart_cont">--}}
                        {{--<li class="no_border"><p>最近添加的商品</p></li>--}}
                        {{--这里是最近添加购物车商品的一个列表--}}
                        {{--<li>--}}
                            {{--<a href="{{url('goods_info')}}" class="prev_cart"><div class="cart_vert"><img src="*" alt="" title="" /></div></a>--}}
                            {{--<div class="cont_cart">--}}
                                {{--<h4>商品名称</h4>--}}
                                {{--<div class="price">数量*单价</div>--}}
                            {{--</div>--}}
                            {{--<div class="clear"></div>--}}
                        {{--</li>--}}

                        {{--<li class="no_border">--}}
                            {{--<a href="{{url('shopping_cart')}}" class="view_cart">查看购物车</a>--}}
                            {{--<a href="{{url('goods_pay')}}" class="checkout">立即结算</a>--}}
                        {{--</li>--}}
                    {{--</ul>--}}
                </li>
            </ul>

            {{--个人中心--}}
            <nav class="private">
                <ul>
                    <li><a href="{{url('/user_info/')}}">个人中心</a></li>
                    <li class="separator">|</li>
                    <li><a href="#">我的收藏</a></li>
                    <li class="separator">|</li>
                    {{--<li><a href="{{url('login/login_in')}}">登录</a></li>--}}
                    {{--<li class="separator">|</li>--}}
                    {{--<li><a href="{{url('login/register')}}">注册</a></li>--}}
                </ul>
            </nav><!-- .private -->
        </div><!-- .grid_6 -->
    </header><!-- #branding -->
</div><!-- .container_12 -->
<div class="clear"></div>

@section('tag')
<div id="block_nav_primary">
    <div class="container_12">
        <div class="grid_12">
            <nav class="primary">
                {{--这里是标签列表 每个标签下面都一张商品分类表--}}
                <ul>
                    <li class="curent"><a href="{{url('home_index')}}">首页</a></li>
                    @foreach($tag as $res)
                    <li><a href="{{action('Home\ClassifyController@catalog_list',['tag_id'=>$res->tag_id])}}">{{$res->tag_name}}</a></li>
                    @endforeach
                </ul>
            </nav><!-- .primary -->
        </div><!-- .grid_12 -->
    </div><!-- .container_12 -->
</div><!-- .block_nav_primary -->
<div class="clear"></div>
    @show


@section('content')
<div class="container_12">
    <div class="grid_12">
        <div class="slidprev"><span>Prev</span></div>
        <div class="slidnext"><span>Next</span></div>
        <div id="slider">
            @foreach($ad as $res)
            <div id="slider1">
                    <a href="{{url('goods_info',['goods_id'=>$res->goods_id,'c_id'=>$res->c_id])}}"> <img src="{{$res->img_src}}"/></a>
            </div>
                @endforeach
        </div><!-- .slider -->

        <div id="myController">
            <div class="control"><span>1</span></div>
            <div class="control"><span>2</span></div>
            <div class="control"><span>3</span></div>
            <div class="control"><span>4</span></div>
        </div>

    </div><!-- .grid_12 -->
</div><!-- .container_12 -->
<div class="copyrights">Collect from <a href="http://www.mycodes.net/"  title="网站模板">网站模板</a></div>
<div class="clear"></div>

<section id="main" class="home">
    <div class="container_12">
        <div id="top_button">

            <div class="clear"></div>
        </div><!-- #top_button -->

        <div class="clear"></div>

        <div class="carousel">
            <div class="c_header">
                <div class="grid_10">
                    <h2>热门商品展示区</h2>
                </div><!-- .grid_10 -->
                <div class="grid_2">
                    <a id="next_c1" class="next arows" href="#"><span>Next</span></a>
                    <a id="prev_c1" class="prev arows" href="#"><span>Prev</span></a>
                </div><!-- .grid_2 -->
            </div><!-- .c_header -->
            <div class="list_carousel">
                <ul id="list_product" class="list_product">

                    @foreach($goods as $data)
                    <li class="">
                        <div class="grid_3 product">
                            <div class="prev">
                                {{--商品详情页链接和商品图片--}}
                                <a href="{{url('goods_info',['goods_id'=>$data->goods_id,'c_id'=>$data->c_id])}}"><img src="{{$data->img_src}}" alt="" title="" /></a>
                            </div><!-- .prev -->
                            <h3 class="title">{{$data->goods_name}}</h3>
                            <div class="cart">
                                <div class="price">
                                    <div class="vert">
                                        <div class="price_new">$550.00</div>
                                    </div>
                                </div>
                                <a href="#" class=""></a>
                                <a href="#" class="like"></a>
                                <a href="#" class="bay"></a>
                            </div><!-- .cart -->
                        </div><!-- .grid_3 -->
                    </li>
                     @endforeach
                </ul><!-- #list_product -->
            </div><!-- .list_carousel -->
        </div><!-- .carousel -->
        <div class="clear"></div>

    </div><!-- .container_12 -->
</section><!-- #main -->

    <div class="clear"></div>

    @show



    {{--网站底部--}}
<footer>
    <div class="f_navigation">
        <div class="container_12">
            <div class="grid_3">
                <h3>Contact Us</h3>
                <ul class="f_contact">
                    <li>49 Archdale, 2B Charlestone</li>
                    <li>+777 (100) 1234</li>
                    <li>mail@example.com</li>
                </ul><!-- .f_contact -->
            </div><!-- .grid_3 -->

            <div class="grid_3">
                <h3>Information</h3>
                <nav class="f_menu">
                    <ul>
                        <li><a href="#">About As</a></li>
                        <li><a href="#">Privacy Policy</a></li>
                        <li><a href="#">Terms & Conditions</a></li>
                        <li><a href="#">Secure payment</a></li>
                    </ul>
                </nav><!-- .private -->
            </div><!-- .grid_3 -->

            <div class="grid_3">
                <h3>Costumer Servise</h3>
                <nav class="f_menu">
                    <ul>
                        <li><a href="contact_us.html">Contact As</a></li>
                        <li><a href="#">Return</a></li>
                        <li><a href="#">FAQ</a></li>
                        <li><a href="#">Site Map</a></li>
                    </ul>
                </nav><!-- .private -->
            </div><!-- .grid_3 -->

            <div class="grid_3">
                <h3>My Account</h3>
                <nav class="f_menu">
                    <ul>
                        <li><a href="#">My Account</a></li>
                        <li><a href="#">Order History</a></li>
                        <li><a href="#">Wish List</a></li>
                        <li><a href="#">Newsletter</a></li>
                    </ul>
                </nav><!-- .private -->
            </div><!-- .grid_3 -->

            <div class="clear"></div>
        </div><!-- .container_12 -->
    </div><!-- .f_navigation -->

    <div class="f_info">
        <div class="container_12">
            <div class="grid_6">
                <p class="copyright">© Breeze Store Theme, 2013. Collect from <a href="http://www.mycodes.net/" title="网页模板" target="_blank">网页模板</a></p>
            </div><!-- .grid_6 -->

            <div class="grid_6">
                <div class="soc">
                    <a class="google" href="#"></a>
                    <a class="twitter" href="#"></a>
                    <a class="facebook" href="#"></a>
                </div><!-- .soc -->
            </div><!-- .grid_6 -->

            <div class="clear"></div>
        </div><!-- .container_12 -->
    </div><!-- .f_info -->
</footer>

</body>
<!-- Added by HTTrack --><meta http-equiv="content-type" content="text/html;charset=utf-8" /><!-- /Added by HTTrack -->
</html>

{{--框架自带的js代码--}}
<script>
    $(document).ready(function(){
        $("#myController").jFlow({
            controller: ".control", // must be class, use . sign
            slideWrapper : "#jFlowSlider", // must be id, use # sign
            slides: "#slider",  // the div where all your sliding divs are nested in
            selectedWrapper: "jFlowSelected",  // just pure text, no sign
            width: "984px",  // this is the width for the content-slider
            height: "480px",  // this is the height for the content-slider
            duration: 400,  // time in miliseconds to transition one slide
            prev: ".slidprev", // must be class, use . sign
            next: ".slidnext", // must be class, use . sign
            auto: true
        });
    });
</script>
<script>
    $(function() {
        $('#list_product').carouFredSel({
            prev: '#prev_c1',
            next: '#next_c1',
            auto: false
        });
        $('#list_product2').carouFredSel({
            prev: '#prev_c2',
            next: '#next_c2',
            auto: false
        });
        $(window).resize();
    });
</script>
<script>
    $(document).ready(function(){
        $("button").click(function(){
            $(this).addClass('click')
        });
    })
</script>

